<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>评估管理-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="__STATIC__/admin/static/css/font.css">
		<link rel="stylesheet" href="__STATIC__/admin/static/css/weadmin.css">
		 <script src="__STATIC__/admin/static/js/jquery3.2.1.min.js" charset="utf-8"></script>
    	<script src="__STATIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
	      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
	      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
	</head>

	<body>
		<div class="weadmin-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">会员管理</a>
        <a>
          <cite>评估管理</cite></a>
      </span>
			<a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
				<i class="layui-icon" style="line-height:30px">ဂ</i></a>
		</div>
		<div class="weadmin-body">
			<div class="layui-row">
				<form class="layui-form layui-col-md12 we-search">
					<div class="layui-inline">
						<input type="text" name="username" placeholder="请输入搜索内容" autocomplete="off" class="layui-input">
					</div>
					<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
				</form>
			</div>
			<div class="weadmin-block">
				<button class="layui-btn layui-btn-danger" onclick="delAll('{:url(\'admin/member/evaluatedel\')}')"><i class="layui-icon"></i>批量删除</button>
				<span class="fr" style="line-height:40px">共有数据：{$total} 条</span>
			</div>

			<table class="layui-table">
				<thead>
					<tr>
						<th width=5%>
							<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
						</th>
						<th width=5%>ID</th>
						<th width=25%>品牌-车型</th>
						<th width=20%>综合指数</th>
						<th width=5%>姓名</th>
						<th width=10%>电话</th>
						<th width=5%>地址</th>
						<th width=10%>当前状态</th>
						<th width=10%>操作</th>
				</thead>

				<tbody>
					{foreach $res as $v}
					<tr>
						<td>
							<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id="{$v['eid']}"><i class="layui-icon">&#xe605;</i></div>
						</td>
						<td>{$v.eid}</td>
						<td>{$v.tname}</td>
						<td>{$v.newprice}万-{$v.cc}L-{$v.emst}-{$v.transmission}</td>
						<td>{$v.oname}</td>
						<td>{$v.ophone}</td>
						<td>{$v.name}</td>
						<td class="td-status">
							{if $v['is_eva']==0}
							未评估
							{elseif $v['is_eva']==1}
							评估中
							{elseif $v['is_eva']==2}	
							已评估
							{/if}	
						</td>
						<td class="td-manage">
							{if $v['is_eva']==0}
							<a title="评估" href="{:url('admin/member/evaluate')}?uid={$v['eid']}">
								<i class="layui-icon">&#xe62c;</i>
							</a>
							{elseif $v['is_eva']==1/}
							<a title="评估完成" href="{:url('admin/member/evaluate')}?oid={$v['eid']}">
								<i class="layui-icon">&#xe605;</i>
							</a>
							{/if}
							<a title="删除" onclick="member_del({$v['eid']},'{:url(\'admin/Member/evaluatedel\')}')" href="javascript:;">
								<i class="layui-icon">&#xe640;</i>
							</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>

			<div class="page">
				<div>
					{$res|raw}总条数：{:$res->total()}
					当前页码：{:$res->currentPage()}
				</div>
			</div>
		</div>
		<script src="__STATIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
    	<script src="__STATIC__/admin/static/js/eleDel.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>